/*
 * AS3 MultiTouch Client
 *
 * TouchEvent - Used to dispatch touch events.  
 *
 * Copyright 2008 Artifacts - Fine Software Development
 * http://www.artifacts.de
 * Author: Michael Markowski (m.markowski@artifacts.de)
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

/**
 * TouchEvent - Used to dispatch touch events.
 * A TouchEvent can be one of the following types:
 * 
 * REPOSITION: Dispatched when cursor is respositioned (a finger is moved)
 * RELEASE: A cursor disappeared (the finger has been released from the touchable area)
 * TOUCH: A cursor appeare (a finger touched something on the touchable area)
 * 
 * The TouchEvent can hold all cursors currently on stage and information about the position of the actual cursor. 
 */ 
package de.artifacts.multitouch
{
	import flash.events.Event;
	import flash.geom.Point;

	public class TouchEvent extends Event
	{
		public static const CREATE : String = "CREATE";
		public static const DESTROY : String = "DESTROY";
		public static const REPOSITION : String = "REPOS";
		public static const UP : String = "UP";
		public static const DOWN : String = "DOWN";
		
		public var position : Point;	
		public var cursor : Cursor;		
		public var cursorId : String;
		
		public function TouchEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}		
	}
}